Tim Cook's company may have made your phone or laptop — but the Apple CEO says he's worried about the amount of time you're probably spending on it.

"If you're scrolling mindlessly or letting yourself being spun up on negativity, I think this is bad," Cook, 61, told CNBC's Andrew Ross Sorkin at the New York Times DealBook conference Tuesday. "I think it's bad for your mental health. I think it's bad for the people around you."