The pickup comes well ahead of the show's seventh-season premiere in February.

NBC will spend more time in the Nine-Nine.

Nearly three months ahead of Brooklyn Nine-Nine's seventh-season premiere, the network has renewed the comedy for an eighth season.

The pickup means Brooklyn Nine-Nine will have at least three seasons on NBC, which kept the show alive following Fox's cancellation of it at the end of the 2017-18 season. (The series comes from NBC's sister studio, Universal TV.) Season seven is scheduled to premiere Feb. 6.

An early renewal for the show also adds some stability to NBC's comedy lineup going forward. The network will say goodbye to the revival of Will & Grace and The Good Place — which like Nine-Nine is executive produced by Mike Schur — at the end of the current season and has pulled the first-year show Sunnyside off air, playing out the remainder of its season on digital platforms.

In 2018-19, Brooklyn Nine-Nine averaged a 1.2 rating among adults 18-49 and 3.2 million viewers after seven days of delayed viewing. It was one of NBC's strongest series on digital platforms, rising to a 3.1 in adults 18-49 and 6.4 million viewers over 35 days of multiplatform viewing. More than half (59 percent) of its total 18-49 rating came via digital platforms, the highest percentage for any NBC series last season.

Brooklyn Nine-Nine stars Andy Samberg, Andre Braugher, Terry Crews, Melissa Fumero, Stephanie Beatriz, Joe Lo Truglio, Dirk Blocker and Joel McKinnon Miller.

Schur and Dan Goor created the series and executive produce with David Miner and Luke Del Tredici. Universal TV produces with Schur's Fremulon, Goor's Dr. Goor Productions and 3 Arts Entertainment.

Brooklyn Nine-Nine joins This Is Us — which is in the first season of a three-year pickup — on NBC's schedule for 2020-21.