Not long ago, Theranos and its founder, Elizabeth Holmes, were stars of Silicon Valley.

Now, the embattled blood-testing company says that it will close its laboratory operations, shut its wellness centers and lay off 340 employees — around 40 percent of its work force — in Arizona, California and Pennsylvania.