fix(formatter): missing semicolon for `declare` function (#13928)
```ts
// normal function
function a() {}
// declare function
declare function a(): void;
```
`declare function` without a function body, so it behaves like a `declare var a: void`, thus the semicolon is needed