TikTok plans to shut US operations of its social media app used by 170-million Americans on Sunday, when a federal ban is set to take effect, barring a last-minute reprieve, people familiar with the matter said on Wednesday.