Trump did a deal with the Taliban in Feb 2020 that came with a timeline.
Discussion
The original plan called for two residual units to be left in Afghanistan. Biden made the unilateral decision to pullout completely and botched the execution. Not a Trumper but you can't blame the guy for everything
Whatever the plans that wasn't signed said, I don't know. But the oner that was signed, I refer you to section Part One, B
Part one was never fully negotiated...

Interesting. Reference. Because it's my understanding that this is the great exit deal that Trump signed and much trumpeted at the time.
It was trumpeted but it was still an ongoing negotiation. Look at line item 1. and the highlighted portion. There are responsibilities on behalf of the Taliban in order for the withdrawal to be approved.
#[4]