During the Storm King’s occupation of Canterlot, I’d like to think that Starlight, Trixie and a few other ponies managed to escape capture and wage a guerilla campaign against the Storm Guards.
After all, how else would the ragtag band the Mane Six assembled so easily overpower the fearsome brutes? Starlight had to have softened up the occupiers with nonstop hit-and-run attacks.