HabitWorks, a new smartphone app, helped people manage anxiety and depression in a randomized trial. Developed by Mass General Brigham researchers in Boston, it trains users to stop jumping to negative conclusions.