That assessment by Gen. Pervez Musharraf came as the exiled king of Afghanistan and leaders of the anti-Taliban Northern Alliance agreed in Rome to convene an emergency Supreme Council by the end of this month and organize an election to replace their country's militant rulers.
British Broadcasting Corp., Musharraf acknowledged that Pakistan had nothing to show for its diplomatic campaign to persuade the Taliban to turn over bin Laden.
"We were interacting with them [the Taliban] so that moderation could take place and maybe this kind of action is averted," he said. "But it appears because of the stand that the Taliban have taken, that confrontation will take place."
The president said it now "appears that the United States will take action in Afghanistan, and we have conveyed this to the Taliban." Asked if the Taliban's days were numbered, he replied: "It appears so."
Pakistan said it would keep trying, even though it saw almost no chance of getting the Taliban to relent.
"Whatever dim hopes are left, possibilities exist," said Foreign Ministry spokesman Riaz Mohammed Khan. "We will remain engaged with the Taliban."
The Northern Alliance is the main force still fighting the Taliban. It is still recognized by the United Nations and most of the world as the legitimate Afghan government even though it controls less than 10 percent of Afghan territory.
Both the king and the opposition commanders made clear in their announcement, which came after three days of talks, that they believe that their plan is a way not only to rid their country of the Taliban government but also to avoid U.S. reprisals against Afghanistan.
The Northern Alliance and the 86-year-old king said in a joint statement that they will set up a Supreme Council for the National Unity of Afghanistan, which will meet in Rome.
That group would include about 120 Afghan leaders, they said, who would in turn call a loya jirga - a traditional gathering of representatives of all ethnic groups that would meet, potentially for weeks - to elect a new transitional government.
If what their agreement calls a "dire situation" prevents such an election, the council itself could become a transitional government, they said.
But the two sides seemed not only newly united but also newly hopeful, saying this is a vulnerable moment for the Taliban, who seem to be losing support out of fear of U.S. military strikes.
"Within one or two weeks of its inception, the council will be the only legitimate body to take decisions relative to Afghanistan," a spokesman for the king, Abdul Sattar Sirat, promised at a news conference.
Yesterday's announcement left the door open for the Taliban to take part in the council, but the Taliban's leader wasted no time in denouncing the move.