US president Donald Trump gave Iran a 48-hour ultimatum to open the Strait of Hormuz or face decimation of its energy infrastructure.