The US is able to prosecute another country's president.
Ex-Honduran president sentenced to 45 years for trafficking drugs to U.S. https://www.washingtonpost.com/world/2024/06/26/honduras-president-juan-orlando-hernandez-sentenced/
Ex-Honduran president sentenced to 45 years for trafficking drugs to U.S.

Juan Orlando Hernández was accused of running a narco-state that formed a critical passageway for South American cocaine to the United States. He has maintained his innocence.

The Washington Post
@jeffjarvis I think we learned that with Noriega.
@jeffjarvis Can we do like a country exchange? We prosecute their former president, they actually prosecute ours?
@legalquilts @jeffjarvis Ooh, Trump serving time in a Honduran prison, that would be tough for someone who thought having his mugshot taken was “torture”
@toriver @jeffjarvis why I absolute adore the idea.