Change JavaScript in TypeScript

I would like to translate this code into actual TypeScript. Could you help me there?

import mongoose, { Promise } from 'mongoose';
Promise = global.Promise;

const db = {};

db.mongoose = mongoose;

db.user = require("./user.model");
db.role = require("./role.model");

db.ROLES = ["user", "admin", "moderator"];

export default db;