This is such a bad answer.
The taliban are a guerilla army, they have zero experience fighting a conventional war.
And no, they are PRACTICALLY not better at offensive and defensive tactics than Pakistan. How do I know? It's because they've lost every single conventional man to man engagement against Pakistan.
The so called IEA is barely a country, with a fractured army that has split loyalties between tribes and clans, and finally they're incompetent.
Hit and Run, Guerilla tactic, insurgency works when you are fighting in home turf with local support, Taliban has to penetrate much deeper into Pakistan before anything, Plus they have no means to convince the local population that they can protect the villages from Pakistan massive Air force attacks, they have Armored Vehicles, AA guns, rusty tanks and some old Artillery, PAF can strike their columns from skies and there is not a single thing they can do, not just that few well placed CM strikes in Kabul will take out the Taliban Leadership, that will bring a leadership gap and given how Afghans are there will soon be infighting, ISIS-K will seize the moment to launch its Attack, meanwhile China will put its entire Weight behind Pakistan because they have invested heavily, not to mention that Kabul will face massive backlash from International community.
Fight against America was completely different as Americans were invading force, while Taliban hide among the local population, told them that sooner or later Americans will leave, but With Pakistan this won't work. ISI was the one who taught them to make IED's and that can be used to take out Taliban leadership as well, Pakistan can also mobilize thousands of Tribal Lashker who are loyal to Pakistan.
Some Afghan fans and their mental masturbation of Taliban as some invincible force is nothing but laughing stock..
Also to note the timing, not a single Statement of action against the US/Israel while 100,000+ Palestinians were slaughtered, but all the macho bravado was for "Daal Khor Punjabi", there is a strong sense of Racism and racial superiority that drive Afghan behavior towards Pakistan.