The Happy Endings alum will play the best friend of Hahn's character on the pilot based on The Leftovers author Tom Perrotta’s bestselling novel of the same name.