I had to guess at how to do this because it's slightly different than Chrome but here's what I found:
async function getNcfaCookie() {
try {
const cookie = await browser.cookies.get({
url: "https://www.geoguessr.com/",
name: "_ncfa",
});