Settings & your account — See and end your active sessions
Settings → Security lists every browser currently signed in to your account: the browser and operating system, how it signed in, the address it signed in from, and when it was last active. The one you are reading from is marked This device.
Press Sign out on any other row to end that session on its own. Sign out other sessions ends all of them but keeps you signed in here — that is the one to reach for when you spot a row you do not recognise. Sign out everywhere ends every session including this one, and also forgets your recognised devices so the next sign-in anywhere emails you; use it if you think someone else has access.
Ending a session takes effect immediately on the server you are talking to and within a minute everywhere else. You get an email whenever sessions are ended, as you do for any change to your password or two-factor setup.