In 2014, Psych became the first TV series to produce a remake of one of its own episodes. Psych followed the adventures of Shawn (James Roday Rodriguez) and Gus (Dul Hill) as the former pretended to be psychic and dragged the latter onto his jobs as a consulting psychic detective. Throughout the run of the show, the series loved to include pop culture references and homage classic media. The show even did its own versions of movies like Clue and Friday the 13th and shows like Twin Peaks.
https://screenrant.com/psych-season-8-remake-first-show-tv-history/