China and the U.S. aim to work more closely together in light of the spread of the coronavirus, leaders of both countries said in a phone call Friday Beijing time.

U.S. President Donald Trump said in a tweet that he spoke with his Chinese counterpart Xi Jinping "in great detail" about the COVID-19 pandemic, which has so far killed more than 24,000 people globally. The U.S. overtook China overnight as the country with the most confirmed virus cases, data showed.

"China has been through much & has developed a strong understanding of the Virus," Trump said on Twitter. "We are working closely together. Much respect!"

Trump tweet.

The phone conversation followed a video conference meeting of G-20 leaders during which Xi gave a speech calling for greater international cooperation. The virus was first reported in late December in the Chinese city of Wuhan and has since killed more than 3,200 people in the country. The spread of the virus domestically has since stalled, but China has stepped up efforts to prevent travelers bringing the disease back from overseas by essentially closing borders to foreigners beginning Saturday.