While Reckless Attack must be made with a melee attack, all attacks for the turn gain Advantage, including ranged attacks.
In the Reaction menu, you can toggle Reckless Attack so that the game asks on every hit whether you want to apply it if you would benefit from the Advantage.