We used to know how to deal with pirates. All it takes is the will to do so. That will is obviously lacking at the moment.
Swarms of small boats from pirate havens? We know where every boat comes from. Missiles launched at civilian shipping or U.S. navel vessels? We know exactly from where the missiles were fired.
A few smoking holes in the ground would do the trick. But an administration that doesn’t have the will to control our own borders and police our own streets is not about to effectively police the Red Sea.
It’s really that simple.