This is my flakeless configuration for macOS using nix
require('typst-preview').setup {
    open_cmd = "open -a 'Google Chrome' %s",
}