WASHINGTON — The Trump administration and China are close to finalizing a modest trade agreement that would suspend tariffs that are set to kick in Sunday, de-escalating their 17-month trade war.

“We’re close to a deal,” said Myron Brilliant, the U.S. Chamber of Commerce’s head of international affairs, who has been briefed by both sides.

Brilliant said the administration has agreed to suspend Trump’s plans to impose tariffs on $160 billion in Chinese imports Sunday and to reduce existing tariffs, though it wasn’t clear by how much.

In return, Beijing would buy more U.S. farm products, increase American companies’ access to the Chinese market and tighten protection for intellectual property rights.

The deal awaits final approval from President Donald Trump.

Trump took to Twitter early Thursday to declare: “Getting VERY close to a BIG DEAL with China. They want it, and so do we!”

Earlier Thursday, a spokesman for China’s Ministry of Commerce, Gao Feng, had told reporters that “the economic and trade teams of both sides have maintained close communication.” He offered no additional details to release.

Beijing had threatened to retaliate if Trump proceeded with plans to raise tariffs on $160 billion of Chinese imports on Sunday.

The two sides are negotiating a so-called Phase 1 agreement as part of the effort to resolve their sprawling trade dispute.

Still, the truce leaves unsettled the toughest and most complex issues that have divided the two sides.

The administration accuses Beijing of cheating in its drive to achieve global supremacy in such advanced technologies such as driverless cars and artificial intelligence.

The administration alleges — and independent analysts generally agree — that China steals technology, forces foreign companies to hand over trade secrets, unfairly subsidizes its own firms and throws up bureaucratic hurdles for foreign rivals.

Beijing rejects the accusations and contends that Washington is simply trying to suppress a rising competitor in international trade.

Since July 2018, the Trump administration has imposed import taxes on $360 billion in Chinese products. Beijing has retaliated by taxing $120 billion in U.S. exports, including soybeans and other farm products that are vital to many of Trump’s supporters in rural America.

On Sunday, the U.S. is scheduled to start taxing an additional $160 billion in Chinese imports, a move that would extend the sanctions to just about everything China ships to the United States.

Repeated rounds of negotiations had failed to achieve even a preliminary agreement. The prolonged uncertainty over Trump’s trade policies has slowed U.S. business investment and likely held back economic growth.