Night-sky [in-に] star [subj-が] kirakira were-shining-[ていた].
きらきら is the classic 擬態語 for sparkling, twinkling, glittering light — used for stars, eyes, jewelry, snow. Paired here with 輝く ('shine brightly'), a verb with built-in brilliance. A textbook stars-at-night description.