China on Thursday slammed the approval of a US bill that would ban TikTok unless it severs ties with its Chinese parent company, blasting Washington's "bandit" mentality and vowing Beijing would "take all necessary measures" to protect the interests of its companies overseas.