Truss assumed office on September 6, 2022 following a general election in response to the resignation of Boris Johnson.
No, she did not. There was no general election. There was an election for party leadership within her own party, who currently hold the majority of seats and so get to appoint the PM.