I guess you can seize foreign-flagged ships as a non-combatant state, but I expect you'll become a combatant pretty soon, if you do too much of it. Nb these countries reducing availability of (their!) shipping capacity to the US during a war could include allies and neutral countries, not just enemies and likely enemies.