Wow!! The USAID files from 2023, released two days ago, show how the US government saw Pakistan as a dictatorship: "Moreover, the country has been managed in fact although not in name by its military establishment."
USAID says, "three-step alternation has actually been directed and certainly manipulated by the military establishment, albeit indirectly and behind the scenes." That the government in Pakistan is entirely controlled by the military establishment.
The US government writes clearly that if democracy were to come to Pakistan, they would not back the US: "So, even if a democratic opening were likely in Pakistan, it is hardly clear let alone likely that the United States would be a welcome partner."
Hence, Asim Munir and the military leadership were kept in power by Joe Biden and now Trump. This is why they are keeping Imran Khan locked up.