Taiwan Semiconductor Manufacturing Co.’s tens of billions of dollars of investments in the US help reduce the archipelago’s trade surplus with its primary security partner, a senior Taiwanese official said, as export-reliant economies brace for US President-elect Donald Trump, who is threatening additional tariffs on imports.