The Taliban has always viewed heroin as something that only harms non-Muslims (they kill junkies) and therefore just taxes the poppy production.
Dunno what the fuck yall are talking about.
The Taliban, like all governments, has a history of flipflopping on its drug policy. Yes, the Taliban has, at times, taken a page from the CIA, and tolerated, even profited, from Afghanistan's heroin trade (journos have been acussing them of doing this for the last several years, for example).
However, one of the proximate causes of the Afghan Invasion
was the Taliban narcotics crackdown of 2000, aka The Day of The Torch, which led to "a 99% reduction in the area of opium poppy farming in Taliban-controlled areas". (Farrel, Thorne)
By sheer coincidence, after the US invasion, the opium poppy farms got back up and running.
Here's a graph showing Afghan poppy cultivation, in hectares, year by year:
That dip between 2000 and 2001 was due to the Taliban enforcing its trad Muslim, no-tolerance drug policy. That massive rise from 2003 onwards, had absolutely nothing to with US foreign intelligence services having free reign over the country, and is probably just some unexplainable, freak data anomaly.