The US almost certainly would, at least it did most recently when France wanted to put a digital tax: https://www.theverge.com/2020/1/23/21078574/france-us-digita...
A consumption tax is a pretty good way to tax foreign companies though imo, as long as your domestic market is desirable.