An assist from fellow John Wells production “ER” has helped save the NBC drama “Third Watch.”

Peacock on Wednesday ordered a full 22-episode season of “Third Watch,” which had been on the bubble at the net. That assures a fourth year for the John Wells Prods./Warner Bros. drama — enough to push it into syndication.

“Third Watch” posted its highest-ever regular timeslot ratings on April 29, thanks to a crossover storyline with “ER.” The episode averaged a 7.0 rating/16 share in adults 18-49 and attracted 17.2 million viewers, helping give NBC its best Monday night average (excluding sports) in three years.

Show also recently received a Peabody Award for this season’s episode “In Their Own Words,” which interwove accounts from the Sept. 11 attacks by real-life police, fire and medical officials.

Wells and Christopher Chulack exec produce “Third Watch,” which has averaged a 4.3/10 in adults 18-49 this season, down slightly from last year’s 4.5/12. But NBC execs were pleased with the show’s small declines given its increased competition at 9 p.m. this season (“Everybody Loves Raymond,” “Becker”) vs. its 10 p.m. berth last year.

“Third Watch” stars Michael Beach, Coby Bell, Amy Carlson, Eddie Cibrian, Molly Price, Kim Raver, Anthony Ruivivar, Skipp Sudduth, Chris Bauer and Jason Wiles as New York-based police officers, paramedics and firefighters who work evenings on the beat.