const report = await nameguard.getSecurePrimaryName("0x...");
You can override the network used for getSecurePrimaryName using the second argument:
getSecurePrimaryName
const report = await nameguard.getSecurePrimaryName("0x...", { network: "...", });