It would take...
1. Getting close to current Xbox and PlayStation consoles in specs while also being easy to develop for (the easy to develop for I think is settled, the specs won't be due to the hybrid nature that's sure to stick). Switch 2 might be moderately underpowered in docked compared to Series S. No way is it touching Series X or PS5.
2. Robust online. Nintendo lacks most online features that have been the standard since Xbox 360 in 2005.
And even then, Nintendo games would still get a lot more sales. Nintendo players overwhelming come for the Nintendo games. PlayStation players come for a handful of Sony games usually and most of the sales are third-party. Xbox players might get a few Microsoft games on average, as they mostly play them on Game Pass.
Lifetime Sales Predictions
Switch: 161 million (was 73 million, then 96 million, then 113 million, then 125 million, then 144 million, then 151 million, then 156 million)
PS5: 115 million (was 105 million) Xbox Series S/X: 48 million (was 60 million, then 67 million, then 57 million)
PS4: 120 mil (was 100 then 130 million, then 122 million) Xbox One: 51 mil (was 50 then 55 mil)
3DS: 75.5 mil (was 73, then 77 million)
"Let go your earthly tether, enter the void, empty and become wind." - Guru Laghima