code: function makeWars(agent) {
      const killmailApi = killmail_1.makeKillmail(agent);
      let functor = function (id) {
          if (id !== undefined) {
              return new WarImpl(agent, id, killmailApi);
          }
          else {
              return functor.recent();
          }
      };
      functor.recent = function (maxId) {
          return agent.request('get_wars', { query: { max_war_id: maxId } });
      };
      return functor;
  }
docs: Create a new {@link Wars} instance that uses the given `agent` to
  make its HTTP requests to the ESI interface.
  
  @param agent The agent making actual requests
  @returns A Wars API instance