WASHINGTON — President Trump used Twitter Sunday night to spell out his plans for a pull-out in Syria.

“Starting the long overdue pullout from Syria while hitting the little remaining ISIS territorial caliphate hard, and from many directions,” he began. “Will attack again from existing nearby base if it reforms.”

Trump also threatened to “devastate Turkey economically” if the country hit the Kurds living in Syria. He proposed creating a 20-mile safe zone to protect the Kurds. “Likewise, do not want the Kurds to provoke Turkey,” he said in a second tweet.

“Russia, Iran and Syria have been the biggest beneficiaries of the long term U.S. policy of destroying ISIS in Syria – natural enemies,” Trump continued. “We also benefit but it is now time to bring our troops back home. Stop the ENDLESS WARS!”

Ankara believes that the Syrian Kurds — who have been allies to the U.S. in the fight against ISIS — are linked to groups that are trying to destabilize Turkey. “If they are terrorists, we will do what is necessary no matter where they came from,” Turkish President Recep Tayyip Erdogan said last week.

Erdogan refused to meet with Trump’s National Security Advisor John Bolton, who was visiting Ankara.

Bolton said last Sunday that the Trump administration would delay pulling American troops from Syria until Turkey assures the U.S. that Kurdish forces won’t be touched.

Erdogan said Bolton was making a “serious mistake.”

So far the US military has only started to move equipment out of Syria. And while about 2,000 American troops are currently based in the civil war-torn country, that number could increase before a final pull-out, according to the New York Times.

Last month, Trump announced that he wanted US troops out of Syria – a decision that resulted in the resignations of Defense Secretary James Mattis and Brett McGurk, the special presidential envoy for the global coalition to counter ISIS.