Fans of “Brooklyn Nine-Nine” can stop tossing objects at their television screens.

A day after Fox canceled the Andy Samberg police sitcom on Thursday, NBC swooped in and announced late Friday that it was picking up the series for a sixth season and 13 episodes.

“We got your SIX! #Brooklyn99 is officially coming to NBC!” the network said in a tweet early on Saturday.

Robert Greenblatt, chairman of NBC Entertainment, said in a statement: “Ever since we sold this show to Fox I’ve regretted letting it get away, and it’s high time it came back to its rightful home.

“Mike Schur, Dan Goor and Andy Samberg grew up on NBC, and we’re all thrilled that one of the smartest, funniest, and best-cast comedies in a long time will take its place in our comedy lineup. I speak for everyone at NBC, here’s to the Nine-Nine!”