On a Chromebook, "it went to sleep" can mean two different things, and each has its own setting. Telling them apart is most of the fix.

Timer one: the display and sleep

Open Settings and look under Device for the power options. This is where you choose how long the screen can sit idle before it dims, turns off, or the Chromebook sleeps, usually with separate choices for when it's plugged in and when it's on battery. The exact menu names change between ChromeOS versions, so use the settings search if you can't spot them.

Timer two: the lock screen

A separate option controls whether you must sign in again after the screen turns off or the lid closes. It lives in the privacy and security settings. A locked screen isn't sleep, but it can interrupt long jobs and presentations all the same.

If your Chromebook is managed

School and work Chromebooks often have these timers set by an administrator. In that case your own settings may be greyed out or overridden, and no extension can change a policy that your organization has set.

Where Lemon Mouse Mover helps

The extension holds a screen wake lock while it is on, which asks the browser to keep the display awake for as long as the tab is active. It also creates activity in your open tabs, so web apps don't mark you idle. It can't stop the lid-close sleep, and it won't override a policy from your administrator.

Plug in for long jobs, and keep the lid open.