The straits can be closed by land based artillery and missile batteries. The status of Iran’s navy is of little importance then.
They don’t even have to do anything. Just move units into position and announce on maritime channels that the straits are closed. No tanker captain is going to even try it.
Cruise missiles solve this problem or am I overly optimistic?