Updated

Pakistan's army spokesman has said his country will react to any action by the United States in the wake of President Donald Trump's tweet on New Year's Day threatening Pakistan.

Maj. Gen. Asif Ghafoor told the local Geo Television on Wednesday night that Pakistan wants to continue cooperation with the U.S. but will not "compromise on national interests and prestige."

He says any concrete action by the U.S. will be met with a response in line with the wishes of the Pakistani people.

Ghafoor said that "allies don't fight" and that "the U.S. should realize how Pakistan has been cooperative in the war against terror."

Trump has accused Islamabad of providing a safe haven and harboring terrorists.

Ghafoor also said the army carried out operations against the Taliban-allied Haqqani network.