There are many examples, but the most famous is TikTok. They had to either sell part of their company [to an American company] or be banned in the US. They didn't sell so now they're being banned. https://en.wikipedia.org/wiki/Restrictions_on_TikTok_in_the_...
Much more common than an outright ban is simply egregious tariffs. (Which didn't do anything to stave off foreign competition or increase local competition, but it did line our pockets)
You are still leaving out that using TikTok still won't be illegal in the USA, it won't be blocked either, just that TikTok won't be able to do businesses in the US (i.e. sell ads), or having other companies do business with it (so no app on the iPhone).
It is not like the states are going to block TikTok with a GFW that doesn't exist. Of course, the inability for TikTok to make money in the USA is going to be a huge hit that the company probably can't get out of.
Are they proposing to arrest people who have TikTok on their phone and encouraging you snitch to the police of you see people using tiktok? what Indonesia is doing is on a completely different level.
Much more common than an outright ban is simply egregious tariffs. (Which didn't do anything to stave off foreign competition or increase local competition, but it did line our pockets)