Since there appears to be no stable economy in Afghanistan that is feasible to build, maintain, and defend, the Taliban's supporters have an incentive to invest, and its recruits have incentive to join up. Ambivalent forces in Afghanistan that might help thwart the Taliban are disincentivized to do so, because there's no path to victory, and they'd be subject to reprisals when the effort failed.
Vast mineral resources could change that. Saudi Arabia has approximately the same population as Afghanistan, but enjoys a massively better standard of living, a far stronger central government, and operates an effectively modern social safety net. If mineral investment can set that trend in motion in Afghanistan, the state may have an actual path to stability. Which alters the equation there in a way that disfavors the Taliban.
Everyone seems to be citing the case of the Congo. But the Congo isn't essentially occupied by the rest of Western Civilization. Apart from foreign corporations, which are agnostic to which regime controls the country, nobody has a stake in the Congo. That's not the case in Afghanistan.
This seems like a positive development.