The problem is that "being at war" isn't really the problem, it's a symptom. A lawless and destabilized gulf region is the result of incomplete and inneffective military action, and in a darkly hilarious way is only treatable by more whack-a-mole warfare.
It wasn't a war we could win. We fought it anyway. Now we're stuck trying to lose in a tolerable way. Which requires more fighting.
At some point the balance will tip and China will take over patronage of the right selection of powers to push us out, which will disentangle western involvement (and make it their problem, of course). But at this stage there really is no hope for genuine stability.
While it is hard to say, all signs point to China not wanting to take over. That isn't to say they could, but China seems content to rule their corner of the world and let the US rule the ocean. (their corner includes Taiwan which the US is not content to allow China to rule)
People talk disparagingly about the US acting as world police but maybe we need something like a real world police that follows agreed laws and avoids violence where possible.
Which is completely insane. The Venezuelan ship attacks have zero to do with what force was authorized for. The AUMF was for the use of force against those responsible for the 9/11 attacks. Were people on the boats in Venezuela? No. Then it's not force authorized by that AUMF.
But Trump found a smokescreen to hide behind. And Congress is too spineless to impeach him for unauthorized use of military force. And here we are.