Despite years of fighting, only around 65 percent of the Afghan population lives in areas under government control.

Reflecting the sense they have the upper hand on the battlefield, or at very least reached a stalemate, the Taliban is keen to show it is no longer beholden to international terror groups. It is also trying to portray itself as ready to re-enter the official halls of power.

So the militant group is counting on war weariness outweighing U.S. fears of the 20 or so “transregional” terrorist groups thought to be operating in and around Afghanistan.

A senior Afghan Taliban commander who is also a member of the group’s leadership council told NBC News that there were around 2,000 to 3,000 non-Afghan fighters in their midst, mostly from China, Tajikistan, Uzbekistan, Chechnya, Tunisia, Yemen, Saudi Arabia and Iraq.

"We are Muslims and according to our religion ... we cannot deny shelter to someone if he or she comes to trouble," said the commander, who recently attended three days of talks with Khalilzad in Qatar. “None of the foreign militants would be allowed to take up arms and use this soil against any country in the world.”

Thousands of Pakistanis are also thought to be fighting as members of the Taliban.

Bin Laden also attracted foreign fighters to Afghanistan after relocating there when the country was ruled by the Taliban, so the question of how the group would deal with the issue still resonates in Washington.

Osama bin Laden took refuge in Afghanistan before the Sept. 11, 2001, attacks. AFP file

Ahmed Rashid, who is considered one of the world’s leading authorities on the Taliban and Afghanistan, estimated that between 2,000 and 3,000 Arabs under bin Laden fought with the Taliban before 9/11, as did tens of thousands of Pakistani militants and a smaller number of Uzbek radicals. The number of foreign fighters in Afghanistan the 1980s stood at around 35,000, according to Rashid.

Despite 17 years of U.S. counter-terrorism fighting in Afghanistan, a greatly weakened Al Qaeda still operates in pockets of the country. In August, Afghan defense officials said its militants had been part of a Taliban's assault in the east of the country. And in November, an American soldier was killed in battle with Al Qaeda militants in the southwest.

“Even after 9/11, the Taliban was not willing to give up Al Qaeda,” said Vanda Felbab-Brown, an expert on international terrorism and a senior fellow at the Brookings Institution, a Washington-based think tank. “Although since the mid-2000s, the Taliban was periodically telling the U.S. that they would not support Al Qaeda, they have never been willing to say it publicly on the record.”

It would be politically costly to “just disavow their brethren,” she said.

This is partly because after the Soviet Union invaded Afghanistan in 1979, the country became a magnet for cash and a training ground for thousands of jihadis. Bin Laden raised funds to help expel “infidel” Russian troops in a cause that galvanized a generation of mujahedeen, or holy warriors, and still reverberates throughout the Muslim world.

“I don’t think that the Taliban loves Al Qaeda,” Felbab-Brown said. “But it does not necessarily mean that they can easily control them.”

Mujahedeen sit on a captured Soviet tank in Afghanistan in 1987. AP file

Even if they wanted to, it is unlikely that the Taliban could keep a promise to rein in foreign fighters and groups. For one thing, the central government in Kabul has always struggled to control the country.

And then there is ISIS Khorasan, the Islamic State’s local affiliate which includes many disaffected Taliban fighters. While small in number, the group has been especially brazen and lethal.

Other groups with regional ambitions, such as Lashkar-e-Taiba and Jaish-e-Mohammed — both of which fight for Indian-controlled Kashmir to separate and become part of Pakistan — have operated “independently, or even in contradiction to the Taliban,” Felbab-Brown added.

The Taliban counters that in the 17 years that it has been fighting U.S. and Afghan forces, not a single attack outside the country has emanated from Afghanistan.

Today's Taliban is much more self-reliant, according to Seth Jones, a former special operations officer in Afghanistan and the director of the transnational threats program at the Center for Strategic and International Studies, a Washington think tank.

When giving shelter to bin Laden before 9/11, the Taliban could count on an influx of financial help and fighters from abroad — particularly from conservative Sunni Gulf kingdoms.

But the group has diversified its income and is involved in everything from poppies — the source of opium — to the timber business, Jones said.

“Taliban commanders at the local level are quite innovative in finding sources of income [and] taxation on areas,” he said. “I have no worries that the Taliban can find sources of money.”

Of special concern is continued support for the Taliban from neighbor Pakistan, which has long provided support for the group. Frustration with this prompted Trump to cancel $300 million in aid to Pakistan in September.

Pakistani officials reject claims they help or shelter Afghan militants.

Experts also say it appears doubtful the Taliban would ever be able to fully control the country. This leaves open the possibility that groups such as ISIS, which the Taliban has been battling, will set up strongholds and terrorists intent on attacking targets beyond Afghanistan's borders.

“The challenge is that the lure and the magnetism of the Iraq and Syria wars has subsided,” Jones said, referring to the recapture of most of the land in the Middle East once controlled by ISIS.

And as the origin of “global jihad,” Afghanistan remains “a winning cause,” he added.