I achieved this simply by resolving both at the same time.
Here’s the code:
$w("#menuAccountLogout").onClick(() => {
Promise.all([wixUsers.logout(), wixLocation.to("/")])
});
This is a bit legacy so I’d use the new Wix Members logout method instead of Wix Users, but the idea is here.