getActiveListingStats(listings: ListingWithCount[]): ActiveListingStats
Get aggregated statistics for active listings. All three values are summed from the precomputed aggregate columns on ListingWithCount (trigger-maintained), which are already in memory from the caller's getAllListings() fetch — no additional DB query needed.
listings: ListingWithCount[]