Liafev is correct. Hence the US Chips Act. Shift away from the relianceon TW and they don't have to worry about those chips. Then it will just be sanctions on China.
In the case of Taiwan, I also think they might get involved, unless we managed to create alternative production hubs for the chips. And that if the chips are not a topic amymore, the US would just watch and say they feel sorry.
But I tend to agree with @Cynic's comment in that the US seem to get involved in conflicts when it benefits them more than when it benefits the greater good.