Implemented TypeScript def for 'plugins/history'

Fixed some missing semicolons in source.