A surprise witness emerges on the final episode of how-to-get-away-with-murder-(ABC, 10 p.m.), ending its run after six seasons. Viola Davis’ award-winning character Annalise Keating is representing herself in her own trial. Will all the threads be wrapped up?

“Station 19” (ABC, 9 p.m.) ends its season with a bomb threat.

The initial season of “Katy Keene” (CW, 8 p.m.) also comes to a close.

Contestants on “Top Chef” (Bravo, 10 p.m.) cook for hundreds of campers.

“The Misery Index” (TBS, 10:30 p.m.), the quasi-quiz show from the unfunny goons of “Impractical Jokers,” starts a second season.

The biggest problems with “Celebrity Watch Party” (Fox, 8 p.m.) is finding something good to watch.

Spicy foods is the focus of the returning “Yum and Yummer” (Cooking, 10 p.m.).

“Broke” (CBS, 9:30 p.m.) was one of the comedies canceled last week; another was “Man with a Plan” (CBS, 8:30 p.m.).

A 17th season starts for “Restaurant: Impossible” (Food, 9 p.m.), as Robert Irvine tries to help a religious-themed restaurant in Florida.

Bill Nye returns to “Blindspot” (NBC, 9 p.m.).

On “Council of Dads” (NBC, 8 p.m.), Robin considers dating again.

A dual storm rocks “Deadliest Catch” (Animal Planet, 8 p.m.).

Greta Thunberg drops by to talk to Anderson Cooper and Dr. Sanjay Gupta on “Coronavirus Facts and Fears: A CNN Global Town Hall” (CNN, 8 p.m.).

On “The Real Housewives of New York” (Bravo, 9 p.m.), Luann talks about her drinking.

Catherine O’Hara and Dr. Phil play “Who Wants to Be a Millionaire” (ABC, 8 p.m.).

Jenni has a wild night on “Jersey Shore Family Vacation” (MTV, 8 p.m.).

On “In the Dark” (CW, 9 p.m.), Dean tries to keep Chloe away from Murphy.

Ben’s injections create unexpected results on “Siren” (Freeform, 10 p.m.).

The Thursday night Edward G. Robinson showcase on Turner Classic Movies continues with his funnier roles in “The Whole Town’s Talking” (8 p.m), “A Slight Case of Murder” (9:45 p.m.), “Larceny, Inc.” (11:30 p.m.), “The Amazing Dr. Clitterhouse” (1:15 a.m.), “Brother Orchird” (3 a.m.) and “The Man with Two Faces” (4:45 a.m.).

During the day are the films of director Vincent Sherman with “Underground” (6:30 a.m.), “All Through the Night” (8:15 a.m.), “The Hard Way” (10:15 a.m.), “Old Acquaintance” (12:15 p.m.), “Adventures of Don Juan” (2:15 p.m.), “The Return of Doctor X” (4:15 p.m.) and “The Young Philadelphians” (5:30 p.m.).

Daytime Talk

Kelly Ripa and Ryan Seacrest: Yara Shahidi, Daveed Diggs, Dr. Jennifer Ashton. The View: Rahm Emanuel. The Talk: Lucy Hale, Ian Armitage. Ellen DeGeneres: Anderson Cooper, Bill Murray. Kelly Clarkson: Lester Holt, Alessia Cara, Fortune Feimster. Tamron Hall: Melinda Gates. Wendy Williams: Robin Thede. The Real: Drew Dixon.

Late Talk

Stephen Colbert: John Lithgow, Alison Roman. Jimmy Kimmel: Stephen Curry. Jimmy Fallon: Chris Evans, Mo Willems, Kane Brown. Seth Meyers: Amy Schumer, Chris Fischer, Graham Norton. James Corden: Tracy Morgan, Bai. Lilly Singh: Reggie Watts (rerun). Conan O’Brien: Nikki Glaser.