It’s not an absurd scenario. The law was written specifically to allow blocking imports from a country.
The nuance is that nothing Congress passed granted to right to tax. Additionally, they did grant the power to partially block imports. Nothing says you have to enact “no imports from Japan” vs. “no imports of networking equipment from Lichtenstein.”