It's prohibited under international law to attack a sovereign nation, like the US has done to Iran, so the point of Iran closing the Strait in response to this is very much moot.