Taiwan will shut markets and schools in northern parts of the island including the capital Taipei on Thursday as slow-moving Typhoon Khanun was expected to brush past amid warnings of floods and high winds.