The best way to earn XP in World of Warships is to play well in battles. This means that you should focus on doing damage to enemy ships, spotting enemy ships, and surviving battles. Additionally, playing well in team-based game modes and completing daily missions can also help you earn XP.