Three teenagers were "simply enjoying a night out" when their lives were "needlessly and tragically cut short" a court has heard.