If there's no jurisdiction there's no obligation to start with.
Case in point: China has made it illegal worldwide to criticize what they're doing in Hong Kong[1]. That doesn't mean you have to listen to them if you're in a country that doesn't care.
[1]: https://www.axios.com/china-hong-kong-law-global-activism-ff...
The US has no such treaty with Afghanistan, and is not a party to the ICC.
Whether or not the US should cooperate with the ICC is another matter, but the US has no legal or diplomatic obligation to do so. And in fact the US executive branch is required by US law to actively thwart ICC action against US servicemembers[1].
[0] https://en.wikipedia.org/wiki/List_of_United_States_extradit...
[1] https://en.wikipedia.org/wiki/United_States_and_the_Internat...
America is getting away with its war crimes and crimes against humanity, simply because there isn't a system by which it can have its obligations not to murder millions of people enforced by external force. Yet. That day may change, one can only hope ..
So what?