Xbox may get one more console launch; a 2027-ish launch with exclusives ready from every possible studio. If that still flops relative to PS6, then they're likely cooked in hardware and highly likely to go full 3rd party route by 2032-2033.
Can't see Nadella and co keeping the hardware business as a money loser if they can't ever get to proper competitive scale again (70-80 million units per generation).
At this point, it's really hard to see any sort of hardware future if they're just focused on the AAA multi-platform (or mainly PC/mobile) titles like Minecraft, CoD, WoW, Candy Crush, Diablo, Elder Scrolls, Fallout, etc.