The authorities shut down schools and offices across Taiwan and grounded all domestic flights as Typhoon Krathon barreled toward the island, bringing torrential rain and strong winds. Thousands of people have been evacuated, and 46 have been injured.