const redis = await connect({ hostname: "127.0.0.1", port: 6379, });
Here redis type is completely wrong. It suggests it contains connection method ?
If you check the first screenshot it is as per JSR documentation. However set and get is not suggesting as per types.