A quick search found this thread on connect.mozilla.org with answers from May 2025 and late August 2025, which essentially states the following:
In Firefox, type about:config in the address bar and hit Enter.
Click "Accept the risk and continue" or similar wording.
Search for each of the following options and change them all to "false":
browser.ml.enable
browser.ml.chat.enabled
browser.ml.chat.page
browser.ml.linkPreview.enabled
browser.tabs.groups.smart.enabled
browser.tabs.groups.smart.userEnabled
extensions.ml.enabled
sidebar.notification.badge.aichat
This should disable most if not all of the embedded AI features. Note that not all of these will be set to True, some of these are not enabled by default - they may be False by default which is fine, meaning they aren't enabled
Note that I don't use the Snap version of Firefox, I use a separately installed version of Firefox from Mozilla's repositories, the current 'stable' version of Firefox in Ubuntu Snap repositories for 'stable' branch is 142.0.1, with the candidate version being 143.0 (which is what I'm using from separate repositories). I don't know at which point Firefox added these settings (whether it was 142 or earlier or 143), so some of these settings might not be present.