The taliban are not an iron tight centralized government.
They have barely won their war, and havent even fully consolidated.
If we see any sort of large scale attacks ordered by the taliban leadership… then Iran will unleash hell on them.
And ballistic missile/drone/atgm/airstrike the taliban leadership while creating a shia militia of hazaras and tajiks and de-facto take control of the north of the country by proxy
The biggest loser here would be the taliban and they know it. Especially since they now have return address for any attack.
It is in Irans interest that afghanistan has some sort of functioning government.
A lawless afghanistan where terrorist elements can be used to attack is what the west sees as their interest post -defeat.
Iran knows what its doing.