The Taliban did NOT exist during the 80s. They didn’t come into being until late 94-95. We supported the Mujahideen, some of which went on to become the Taliban, while others became the Northern Alliance, the Taliban’s enemies.
The name didn’t exist but their beliefs did. The US gave them arms and who was the enemy? Russia, just like Vietnam.
Face it, we aided the Taliban.