https://plainlanguage.gov/guidelines/audience/
IBM has some guidance on this too, as part of their design system:
https://www.carbondesignsystem.com/guidelines/content/genera...
Basically IBM's rule seems to be: there's never a need to be _formal_, but you should be less conversational on specific tasks, and more conversational on high-level docs and marketing material.