The feature is an effort by the company to help teens manage their time on the app and not stay up all night scrolling.