On page 119 of VGtM, the description of the Kobold playable race's trait, Pack Tactics, reads:
Pack Tactics. You have advantage on an attack roll against a creature if at least one of your allies is within 5 feet of the creature and the ally isn't incapacitated.
It doesn't specify whether your attack has to be melee or that the ally must be within 5 feet of your PC.
Does the kobold player race feature, Pack Tactics, give ranged spell and weapon attacks advantage?