For people of Pakistan
Now that I have had time to think about this, this is my input.
Taliban have no capability to fight Pakistan and any attack will be severely put down but the fact that Taliban dared to attack Pakistan border posts and have openly admitted it is a terrible failure of Pakistan Government.
I understand that due to incessant from Maulana Fazlur-Rahman etc, many Muslims have reservations against Imran Khan but the Generals in Pakistan Army abused Bangladeshi people (in 1971) and brutally suppressed them but Pakistan lost "East Pakistan".
Today, the same Generals of Pakistan Army are suppressing Pushtun people (in both Pakistan and Afghanistan) and no doubt that they have the power to inflict loses but if they do not release Imran Khan and not antagonize Afghanistan then Pakistan will break up.
Muslims of Pakistan SHOULD NOT fight the Muslims of Afghanistan under any circumstances and under scenario at all.
The Generals of Pakistan have visited Britain, US, Middle East numerous time but NONE of them have gone to Afghanistan to resolve these issues, there has not been a single visit to Kabul to resolve these issues.
"Pakistani Ulama" at the behest of Pakistan Military Generals are now regularly bashing the Taliban, the same Taliban which "Pakistani Ulama" used to promote as second coming of "Umar (RA)" and used to promote as Army of Mahdi with "Black banners", all of a sudden Ulama in Pakistan are now labeling Taliban as Khawarij.
What Taliban do in Afghanistan is nobody's business but they are our Muslim Brothers. The Afghans rely on Pakistan for medical treatment, trade etc and we cannot at the behest of Donald Trump slaughter Muslims even if we have the capability to do so.
The only solution for Pakistan to survive is to release Imran Khan and let politics take its course.
Soviet Union collapsed despite have Nuclear weapons.
It is clear that Generals in Pakistan Army are willing to destroy the country for their own sake and it is also clear that "Ulama" have decided to back the Army, terrible mistake!