How to install that account to Xbox accoun

How to link battle net account to Xbox account

It’s been sometime ago but I remember download battle.net and authenticator app. I play on Switch and assume connecting should be the same.