TikTok has nine months to cut ties with its China-based parent company ByteDance.