Remove unused packages in convert.js
Add Ast type