That is true, there were no new wars when Trump was president. But, Biden pulled us out of Afghanistan:
https://www.whitehouse.gov/wp-content/uploads/2023/04/US-Withdrawal-from-Afghanistan.pdf
TLDR: President Biden aimed to end the longest war in American history and focus on new security threats. However, the conditions inherited from the previous administration limited his options. In 2020, under the Doha Agreement, the US agreed to withdraw all troops by May 2021, while the Taliban agreed to prevent attacks on US forces and negotiate peace. In December 2020, the Trump administration left no plans for the withdrawal or evacuation, resulting in chaos as the Taliban seized control of almost half of Afghanistan's territory when Biden assumed office. Despite initial optimism that the Afghan National Defense and Security Forces could defend their country, events unfolded faster than anticipated, necessitating a quick exit. The experience emphasizes the importance of proper transition coordination and planning.