The writer Ned Vizzini, whose first book was adapted into the 2010 indie feature “It’s Kind of A Funny Story,” took his own life Thursday, according to a Los Angeles Times report. He was 32 years old.

A story in the Brooklyn-based L Magazine – where Vizzini appeared as both a contributor and an interview subject – said the writer died in Brooklyn (he grew up in Park Slope), though he was based in Los Angeles. In one of his interviews there, he told the L Magazine that the semi-autobiographical “It’s Kind of a Funny Story,” which is about a young adult struggling with mental health issues along with the typical coming-of-age challenges, was 85 percent true.

Vizzini published “It’s Kind of A Funny Story” in 2007; the 2010 film adaptation was directed by Anna Boden and Ryan Fleck (“Half Nelson”), and starred Zack Galifianakis, Keir Gilchrest and Emma Roberts. Vizzini published two more novels, “Be More Chill” and the YA fantasy “The Other Normals,” as well as an essay collection titled “Teen Angst? Naah.” According to the Los Angeles Times, Vizzini had recently been writing for the upcoming NBC series “Believe,” created by Alfonso Cuaron and produced by J.J. Abrams.

Vizzini leaves his wife, Sabra, and a young son.

Vizzini was relatively active on Twitter, where he frequently tweeted about his son, until late November. His last tweet, on Thanksgiving, read, “I’m thankful for showers.”

New York Magazine’s Kyle Buchanon, a friend of Vizzini’s, memorialized him in a post on Vulture. Buchanan writes that Vizzini’s time at a psychiatric hospital in his early 20s “doesn’t make it any easier to believe that those feelings bested him now, because when I think of Ned, I think of that happy, crooked smile you barely had to coax out of him.”