Xi has wrapped up a two-day visit to Pyongyang, his first official trip to North Korea since 2019.