Sign out: this device, one session or all
Sign out of this device, a specific session, the others or all, from Settings → Security.
This device
Settings → Account → Sign out: You'll be signed out on this device. The panel menu also has Log out.
A specific session
In Security, press Close on the session you want and confirm The session on {device} will be closed. You'll have to sign in again on that device. You'll see Session closed.
The others
Close other sessions leaves only this device's open: The other N open sessions will be closed. This device stays signed in. You'll see Sessions closed. It's what you should do after seeing an access you don't recognise.
All of them
Close all sessions also closes this device's: All sessions will be closed, including this one. You'll have to sign in again on every device. You'll see All sessions closed.